import Index from './pages/Index.vue'
import Detail from './pages/Detail.vue'
import Analysis from './pages/detail/Analysis.vue'
import Forecast from './pages/detail/Forecast.vue'
import Count from './pages/detail/Count.vue'
import Publish from './pages/detail/Publish.vue'
let routes = [
  {
    path : '/',
    component : Index,
    name : '售卖首页',
    hidden : false
  },
  {
    path : '/detail',
    component : Detail,
    name : '售卖详情',
    hidden : false,
    children: [
      { path: 'analysis', component: Analysis, name: '数据统计', hidden: false },
      { path: 'forecast', component: Forecast, name: '数据预测', hidden: false },
      { path: 'count', component: Count, name: '流量分析', hidden: false },
      { path: 'publish', component: Publish, name: '广告发布', hidden: false }
    ]
  }
]

export default routes;
